const warp = (data: any) => {
    return {
        "code": "200",
        "msg": "成功",
        data
    }
}
export default {
    'POST /api/participant/department': (req: any, res: any) => {
        res.json(warp([
            {
                "id": "1701096767315136514",
                "name": "yyds-yyds-1",
                "parentId": null,
                "children": [
                    {
                        "id": "1701096933334077441",
                        "name": "yyds-yyds-yyds",
                        "parentId": "1701096767315136514",
                        "children": null
                    }
                ]
            }
        ]));
    },
    'POST /api/participant/role': (req: any, res: any) => {
        res.json(warp([
            {
                "id": "1701853352710770689",
                "name": "只读角色"
            },
            {
                "id": "1701853474244923394",
                "name": "测试角色"
            },
            {
                "id": "1701853589680558082",
                "name": "test"
            }
        ]));
    },
};
